
<?php

$msg = '登录成功';
$sec = 3;
$url = $_SERVER['HTTP_REFERER'];

header('refresh:'.$sec.';url='.$url);

?>

<div><?=$msg;?><?=$sec;?>秒后跳转</div>
<a href="<?=$url;?>">立即跳转</a>
